package com.tmeone.erpone.mapper;

import com.tmeone.erpone.entity.SMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tmeone.erpone.entity.SRoleMenu;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tmeone
 * @since 2021-04-16
 */
public interface SMenuMapper extends BaseMapper<SMenu> {
    //查父节点
    List<SRoleMenu> selectFunsAll(String userName);

    //查子节点
    SMenu selectListALl(String id);

    List<SMenu> selectziListALl(String menuPid);

    //根据角色查权限
    List<String> selectRoleId(String roleId);




}
